/**
 * 
 */
package com.cuitrip.util;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.ListView;

import com.cuitrip.service.R;

/** @author ak */
public class ListUtil {

	/**
	 * 给listview添加加载底部效果
	 * @param inflater
	 * @param list
     * @return
     */
	public static View setupLoadingFooter(LayoutInflater inflater, ListView list) {
		View loading = inflater.inflate(R.layout.loading_footer, null);
//		View empty = new View(inflater.getContext());
		list.setFooterDividersEnabled(false);
//		list.addFooterView(empty, null, true);
		list.addFooterView(loading, null, false);
		return loading;
	}
}